package Mangos::DB::Characters::GuildEventlog;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'guild_eventlog',

    columns => 
    [
        guildid     => { type => 'integer', not_null => 1 },
        LogGuid     => { type => 'integer', not_null => 1 },
        EventType   => { type => 'integer', not_null => 1 },
        PlayerGuid1 => { type => 'integer', not_null => 1 },
        PlayerGuid2 => { type => 'integer', not_null => 1 },
        NewRank     => { type => 'integer', not_null => 1 },
        TimeStamp   => { type => 'bigint', not_null => 1 },
    ],

    primary_key_columns => [ 'guildid', 'LogGuid' ],
);

1;

package Mangos::DB::Characters::GuildEventlog::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::GuildEventlog' }

__PACKAGE__->make_manager_methods('guild_eventlog');

1;
